package com.be.beadmin.material.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Author: Mengyang Zhu
 * @Date: 2023/5/14 21:24
 * @Description: 分料任务
 */

@Getter
@Setter
@Data
@Entity
@Table(name = "T_MM_PickingTask")
public class PickingTask extends BaseEntity {
    @Column(name = "ErpOrderNo", columnDefinition = "VARCHAR(50) COMMENT 'ERP任务号' ")
    private String erpOrderNo;

    @Column(name = "PickingTaskCode", columnDefinition = "VARCHAR(50) COMMENT '分料任务号' ")
    private String pickingTaskCode;

    @Column(name = "ProjectCode", columnDefinition = "VARCHAR(50) COMMENT '项目编号' ")
    private String projectCode;

    @Column(name = "ProjectName", columnDefinition = "VARCHAR(50) COMMENT '项目名称' ")
    private String projectName;

    @Column(name = "BatchPlanCode", columnDefinition = "VARCHAR(50) COMMENT '批次号' ")
    private String batchPlanCode;

    @Column(name = "batchPlanId", columnDefinition = "VARCHAR(50) COMMENT '批次计划Id' ")
    private String batchPlanId;

    @Column(name="CurrentBatchCode",columnDefinition="VARCHAR(50) COMMENT '当前批次号'")
    private String currentBatchCode;

    @Column(name = "ProductCode", columnDefinition = "VARCHAR(50) COMMENT '柜体编号' ")
    private String productCode;

    @Column(name = "Wo", columnDefinition = "VARCHAR(50) COMMENT '工单编号' ")
    private String wo;

    @Column(name = "WoDesc", columnDefinition = "VARCHAR(50) COMMENT '工单描述' ")
    private String woDesc;

    //未分料、未领物料、已分料、车间接收（必须分料完成才能接收）
    @Column(name = "PickingState", columnDefinition = "VARCHAR(50) COMMENT '任务状态' ")
    private String pickingState;

    @Column(name = "PickingFinishTime", columnDefinition = "datetime COMMENT '分料完成时间' ")
    private Date pickingFinishTime;

    @Column(name = "workshopFinishTime", columnDefinition = "datetime COMMENT '车间接收日期' ")
    private Date workshopFinishTime;

    @Column(name = "PlanFinishTime", columnDefinition = "datetime COMMENT '计划完成时间' ")
    private Date planFinishTime;

    @Column(name = "ProductType", columnDefinition = "VARCHAR(50) COMMENT '柜体类型编号' ")
    private String productType;

    @Column(name = "ProductTypeName", columnDefinition = "VARCHAR(50) COMMENT '柜体类型名称' ")
    private String productTypeName;

    @Column(name = "StageStartTime", columnDefinition = "datetime COMMENT '阶段实际开始时间' ")
    private Date stageStartTime;

    @Column(name = "StageEndTime", columnDefinition = "datetime COMMENT '阶段实际结束时间' ")
    private Date stageEndTime;

    @Column(name = "StagePlanStartTime", columnDefinition = "datetime COMMENT '阶段计划开始时间' ")
    private Date stagePlanStartTime;
    @Column(name = "StagePlanEndTime", columnDefinition = "datetime COMMENT '阶段计划结束时间' ")
    private Date stagePlanEndTime;

    @Column(name = "batchDeliveryTime", columnDefinition = "datetime COMMENT '批次交货日期' ")
    private Date batchDeliveryTime;

    @Column(name = "materialDirector", columnDefinition = "VARCHAR(50) COMMENT '项目分料人' ")
    private String materialDirector;
    @Column(name = "Memo", columnDefinition = "text COMMENT '备注' ")
    private Date memo;


}
